<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>上传图片 - 模版</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Expires" CONTENT="0">
    <meta http-equiv="Cache-Control" content="no-siteapp,no-transform,no-store, no-cache, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <link rel="stylesheet" href="/static/css/weadmin.css">
    <link rel="stylesheet" type="text/css" href="/lib/webuploader/webuploader.css"/>
    <link rel="stylesheet" type="text/css" href="/lib/webuploader/static/style.css"/>
    <script type="text/javascript" src="/lib/jquery/jquery.js"></script>
    <script type="text/javascript" src="/lib/webuploader/webuploader.js"></script>
</head>
<body>
<div id="wrapper">
    <div id="container">
        <!--头部，相册选择和格式选择-->

        <div id="uploader">
            <div class="queueList">
                <div id="dndArea" class="placeholder">
                    <div id="filePicker"></div>
                    <p style="text-align: left;padding-left:50px;">1.上传文件前请务必阅读
                        <a target="_blank" href="../../../../static/images/Standard_Of_DWG_Report.pdf"
                           style="color: red">《DWG 电子图纸报审标准》</a>
                    </p>
                    <p style="text-align: left;padding-left:50px;">2.PDF单个文件大小不超过50MB，DWG单个文件大小不超过10MB</p>
                </div>
            </div>
            <div class="statusBar element-invisible">
                <div class="progress">
                    <span class="text">0%</span>
                    <span class="percentage"></span>
                </div>
                <div class="info"></div>
                <div class="btns">
                    <div id="filePicker2"></div>
                    <div class="uploadBtn">开始上传</div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="/lib/layui/layui.js"></script>
<script type="text/javascript" src="/static/js/main.js"></script>
<script type="text/javascript">


    function getQueryString(name) {
        var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
        var r = window.location.search.substr(1).match(reg);
        if (r !== null) {
            return unescape(r[2]);
        }
        return null;
    }


    var fileNumLimit = 100; //限制数量
    var fileSizeLimit = 1024 * 1024 * 1024;        // 限制总大小;
    var fileSingleSizeLimit = 10 * 1024 * 1024;    // 限制单个文件大小

    var multiple = true;
    var accept = {
        title: 'DWG',
        extensions: 'dwg',
        mimeTypes: '.dwg'
    };

    // var formData = {
    //     areaId: getQueryString('areaId'),
    //     dirId: getQueryString('dirId'),
    //     docId: getQueryString('docId')
    // }


    // var uploadUrl = 'PRJ_WORK_AREA_DRAWING_UPLOAD_API';

    layui.use(['sessionFun', 'configure', 'uploadDrawing','configureCom'], function () {
        var sessionFun = layui.sessionFun;
        var configure = layui.configure;
        var uploadDrawing = layui.uploadDrawing;
        var configureCom = layui.configureCom;
    });
</script>

</body>
</html>